package com.rjj.wlqq.wxpay.wxpay.entity;


import com.rjj.wlqq.wx.tool.StrKit;

/**
 * @author r
 * @date 2021/1/19 22:38
 * <p>
 * https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_2
 *
 * <xml>
 * <appid>wx2421b1c4370ec43b</appid>
 * <mch_id>10000100</mch_id>
 * <nonce_str>ec2316275641faa3aacf3cc599e8730f</nonce_str>
 * <transaction_id>1008450740201411110005820873</transaction_id>
 * <sign>FDD167FAA73459FD921B144BAF4F4CA2</sign>
 * </xml>
 */
public class PayOrderQuery
{
    String transaction_id;

    public String getTransaction_id()
    {
        return transaction_id;
    }

    public PayOrderQuery setTransaction_id(String transaction_id)
    {
        this.transaction_id = transaction_id;
        return this;
    }

    private PayOrderQuery()
    {
    }

    public PayOrderQuery(String transaction_id)
    {
        this.transaction_id = transaction_id;
    }

    public static PayOrderQuery Builder()
    {
        return new PayOrderQuery();
    }

    public PayOrderQuery build()
    {
        if (StrKit.isBlank(transaction_id))
        {
            throw new IllegalStateException("transaction_id is  null");
        } else
        {
            return this;
        }
    }
}
